package cloudContact;

public class Common {
	
	public static String CriticalErrorRaised(Exception e) {
		return Common.CriticalErrorRaised(e,"none");
	}
	
	public static String CriticalErrorRaised(Exception e, String data) {
		
		e.printStackTrace();
		
		Emailer.sendEmail("sompops@gmail.com", "[CloudContact] Critical exception raised", e.toString() + "<br /><br />Support data<br /><br />" + data);
		
		return "Critical: " + e.toString();
	}
}
